using UnityEngine;
using System.Collections;

public class MeetUI : MonoBehaviour {
	
	private AlienGenome playerGenome ;
	public AlienStatsUI featuredStats;
	public GUISkin	mainSkin;
	
	string introText="Welcome the exciting field of xeno-eugenics.\n\nHere is your first generation subject.\nIt is not his job to live.\nIt is his job to try.\n\nYou can't help him, but you can help the future.\n\nBreed them, Fight them, Breed Them.\nThere can be only one.\n\nStep 1: Breed a superior offspring for you first challenge. \nStep 2: Fight your first of Four Challenges.";
	
	
	// Use this for initialization
	void Start () {
	
	}
	
	public void setPlayerAlien(AlienGenome playerAlien)
	{
		featuredStats.attachAlien(playerAlien);
		featuredStats.gameObject.transform.localScale= new Vector3(1,1,1);
	}
		
	private Vector2 scroll= new Vector2(0,0);
	void OnGUI() {
		GUI.skin= mainSkin;
		GUILayout.BeginVertical();
		GUILayout.BeginScrollView(scroll);
			GUILayout.TextArea(introText);
		GUILayout.EndScrollView();
		
			if(GUILayout.Button("S c i e n c e !")) {
				if(done != null)
					done();
			}
			
		GUILayout.EndVertical();
		
	}
	
	public delegate void ButtonEvent ();
	public event ButtonEvent done;
	
	// Update is called once per frame
	void Update () {
	
	}
}
